#!/usr/bin/env python2.7
# -*- coding:utf-8 -*-
# test.py

import os, sys
from string import *
#import re
#from datetime import datetime, timedelta
#from dateutil.parser import parse
#import numpy as np
#import matplotlib
#matplotlib.use('Agg')
#import matplotlib.pyplot as plt
#from mpl_toolkits.basemap import Basemap
#from matplotlib import mlab
#from netCDF4 import Dataset

hebrewab = u'אבגדהוזחטיכלמנסעפצקרשת'

def make_transdict(frm, to):
    return dict(zip(frm,to))

def translate_dict(s, d):
    reslist = []
    for c in s:
        reslist.append(d.get(c,c))
    return ''.join(reslist)

print len(hebrewab)

bbtext = ' '.join([l.rstrip() for l in open('./gen01_clean.txt').readlines()]).decode('utf-8')

#table = make_transdict(hebrewab, u'1234567123456712345671')
table1= make_transdict(hebrewab, u'➀➁➂➃➄➅➆1234567❶❷❸❹❺❻❼i')
table2= make_transdict(hebrewab, u'6712345671234567123456')
#print table

transtext = translate_dict(bbtext, table1)
print transtext

words = bbtext.split()





if __name__ == '__main__':
    pass
